package com.ljt.springvalidation;

import jakarta.validation.Valid;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Controller {

    @PostMapping("/register")
    public String register(@Valid @RequestBody RegisterUserRequest request) {
        System.out.println(request);
        return "success";
    }


}
